import React,{Component} from 'react'
import {Link} from 'react-router-dom'
export default class User extends Component{
  constructor(props){
    super(props)
    this.state={
      val: ''
    }

  }
  changeInput(e){
    this.setState({
      val:e.target.value
    })

  }
  render (){
    return (
      <div>
        User
        <input type="text" value={this.state.val} onChange={(e)=>this.changeInput(e)}/>
        <br/>
        <Link to='/antd-test'>/antd-test</Link>
        <br/>
        <Link to='/axios-test'>/axios-test</Link>
      </div>
    )
  }
}
